<template>
	<view class="content">
		<first-nav></first-nav>
		<video-list :lists="lists"></video-list>
		<tab></tab>
		
	</view>
</template>

<script>
	import tab from "../../componment/tab.vue"
	import firstNav from "../../componment/first-nav.vue"
	import videoList from "../../componment/videoList.vue"
	export default {
		components:{
			tab,
			firstNav,
			videoList
		},
		data() {
			return {
				lists:[]
			}
		},
		// 页面加载后
		onLoad() {
			this.getVideoes()

		},
		methods: {
			getVideoes(){
				uni.request({
					url:'api//htdocs/myapi/video.json',
					success:(res)=>{
						this.lists=res.data.list
						console.log(res.data)
					}
				})
			}

		}
	}
</script>

<style>
.content{
	width: 100%;
	height: 100%;
}
</style>
